<?php

namespace App\Listeners;

use App\TransactionSql;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;

class QueryListener
{
    public function __construct()
    {
    }

    public function handle($event)
    {
        /*$sql = new TransactionSql();
        $sql->sql = $event->sql;
        $sql->server = "res_ms";
        $sql->save();*/
        /*$sql = str_replace("?", "'%s'", $event->sql);
        $sql_raw = vsprintf($sql, $event->bindings);
        Log::info("Transaction:  ".$sql_raw);*/
    }
}